package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.cet.demos.domain.dto.SubDto;
import org.example.cet.demos.domain.dto.SubHomeworkDto;
import org.example.cet.demos.domain.dto.SubPaperDto;
import org.example.cet.demos.domain.dto.SubmissionDto;
import org.example.cet.demos.domain.po.Submission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.cet.demos.domain.po.Teacher;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hq
 * @since 2024-12-18
 */
@Mapper
public interface SubmissionMapper extends BaseMapper<Submission> {
    ArrayList<Submission> getPage(Long submissionId);
//    void update(String answer);
//
//    void update(@Param("id") Long id, @Param("answer") String answer);
    List<SubmissionDto> getList(Integer type);
    List<SubDto> findId(Long id);
    List<SubHomeworkDto> findHomework(Long homeworkId);
    List<SubPaperDto> findPaper(String bankId);

}
